import request from '@/request/index.js';

export function getSelfInspectDepartment(params) {
	return request.get({
		url: '/app-api/hospital/self-inspect/get-department',
		params,
		custom: {
			title: "查询可开单科室挂号记录",
			authentication: true
		}
	});
}

export function getSelfInspectSymptom(params) {
	return request.get({
		url: '/app-api/hospital/self-inspect/get-symptom',
		params,
		custom: {
			title: "自主开单获取症状",
			authentication: true
		}
	});
}

export function getSelfInspectLog(params) {
	return request.get({
		url: '/app-api/hospital/self-inspect/get-log',
		params,
		custom: {
			title: "自主开单获取记录",
			authentication: true
		}
	});
}

export function paySelfInspect(data) {
	return request.post({
		url: '/app-api/hospital/self-inspect/pay',
		data,
		custom: {
			title: "自助开单支付",
			authentication: true
		}
	});
}

export function cancelSelfInspect(data) {
	return request.post({
		url: '/app-api/hospital/self-inspect/cancel',
		data,
		custom: {
			title: "自助开单取消",
			authentication: true
		}
	});
}

export function getSelfInspectProject(data) {
	return request.post({
		url: '/app-api/hospital/self-inspect/get-project',
		data,
		custom: {
			title: "自主开单获取项目",
			authentication: true
		}
	});
}

export function selfInspectSubmit(data) {
	return request.post({
		url: '/app-api/hospital/self-inspect/submit',
		data,
		custom: {
			title: "自主开单提交",
			authentication: true
		}
	});
}